package com.travel.server.manager.dto.response.project.data;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/29 10:40
 * @Desc:
 */
@Data
public class QueryProjectApplyResponse {

    private String today = "0";

    private String yesterday = "0";

    @JSONField(name = "project_apply_list")
    private List<ProjectApplyItem> projectApplyList;

    @JSONField(name = "apply_list")
    private List<ApplyItem> applyList;

    @JSONField(name = "total_num")
    private Integer totalNum;

    @Data
    public static class ProjectApplyItem{
        private String project;

        private String apply;

        private String order;

        private String refund;

        private String income;

        @JSONField(serialize = false)
        private Date travelDate;
    }

    @Data
    public static class ApplyItem{
        @JSONField(format = "yyyy-MM-dd")
        private Date date;

        @JSONField(name = "week_date", format = "yyyy-MM-dd")
        private Date weekDate;

        private String apply;

        private String add;
    }
}
